<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<form id="pagerForm" method="post" action="article/findAll">
    <input type="hidden" name="pageNum" value="1" />
</form>

<div class="pageHeader">
    <form rel="pagerForm" onsubmit="return navTabSearch(this);" action="w_removeSelected.html" method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>文章检索：</label>
                    <input type="text" name="keywords" value=""/>
                </li>
                <li>
                    <select class="combox" name="province">
                        <option value="">类型</option>
                        <option value="北京">家居风水</option>
                        <option value="上海">上海</option>
                        <option value="天津">天津</option>
                        <option value="重庆">重庆</option>
                        <option value="广东">广东</option>
                    </select>
                </li>
            </ul>

            <div class="subBar">
                <ul>
                    <li><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></li>
                    <li><a class="button" href="demo_page6.html" target="dialog" mask="true" title="查询框"><span>高级检索</span></a></li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <li><a class="add"  href="article/preSave" target="navTab"><span>添加</span></a></li>
            <li><a title="确实要删除这些记录吗?" callback="dialogAjaxDoneThis" target="selectedTodo" rel="ids" href="indexImage/deleteBeath" class="delete"><span>批量删除默认方式</span></a></li>
            <li><a title="确实要删除这些记录吗?" callback="dialogAjaxDoneThis"  target="selectedTodo" rel="ids" postType="string" href="indexImage/deleteBeath" class="delete"><span>批量删除逗号分隔</span></a></li>
            <li class="line">line</li>
            <!--<li><a target="selectedLoad" rel="ids" postType="string" href="demo_page1.html" class="icon"><span>批量Dialog Load逗号分隔</span></a></li>-->
        </ul>
    </div>
    <table class="table" width="1200" layoutH="138">
        <thead>
        <tr>
            <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
            <th width="120" orderField="accountNo" class="asc" name="">文章标题</th>
            <th width="60" align="center" orderField="accountLevel">文章的类型</th>
            <th width="120" orderField="accountType">小标题</th>
            <th width="130" orderField="accountCert">图片地址(点击看大图)</th>
            <th orderField="accountName">文章详情(点击查看文章详情)</th>
            <th width="70">上传时间</th>
            <th width="70">页面头</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${list}" var="l">
        <tr target="sid_user" rel="1">
            <td><input name="ids" value="${l.articleId}" type="checkbox"></td>
            <td>${l.articleTitle}</td>
            <td>${l.fourType.typeName}</td>
            <td>${l.articleSmallTitle}</td>
            <td>${l.articleImage}</td>
            <td>${l.fourContent.contentId}</td>
            <td>${l.articleUploadData}</td>
            <td>${l.articleHead}</td>
            <td>
                <a title="删除"  callback="dialogAjaxDoneThis"  target="ajaxTodo" href="article/deleteById/${l.articleId}" class="btnDel">删除</a>
                <a title="编辑" target="navTab" href="article/preUpdate/${l.articleId}" class="btnEdit">编辑</a>
                <a title="查看文章" target="navTab" href="article/showById/${l.articleId}" class="btnInfo">查看文章</a>
            </td>
        </tr>
        </c:forEach>
        </tbody>
    </table>
    <div class="panelBar">
        <div class="pages">
            <span>显示</span>
            <select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
                <option value="20">20</option>
                <option value="50">50</option>
                <option value="100">100</option>
                <option value="200">200</option>
            </select>
            <span>条，共${totalCount}条</span>
        </div>

        <div class="pagination" targetType="navTab" totalCount="${totalCount}" numPerPage="${number}" pageNumShown="10" currentPage="${pageNum}"></div>

    </div>
</div>
